package com.his.outdockerworkstation.patioutorder.controller;

import com.xiao.common.controller.ResultBaseController;
import com.xiao.common.util.ResultUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiaoxiaoping
 * @Date 2020/3/23 14:22
 * @Version 1.0
 */
@RestController
@RequestMapping(value="/api/pati_out_order")
public class PatiOutOrderController extends ResultBaseController {

    private  final org.slf4j.Logger logger = (Logger) LoggerFactory.getLogger(this.getClass());

    @PostMapping(value="/save.do")
    public ResultUtil save(){
        try{
            return this.success("保存成功",null);
        }catch (Exception e){
            e.printStackTrace();
            logger.error(e.getMessage());
            return this.fail(e.getMessage(),null);
        }
    }
}
